<T:ViewBase x:Class="WPFExcelReport.TDBAB"
            xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
            xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"                        
            xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core"
            xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"
            xmlns:Localization="clr-namespace:Localization;assembly=Localization"
            xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
            xmlns:T="clr-namespace:WPFExcelReport;assembly=IntexBL" 
            xmlns:ABK="clr-namespace:WPFExcelReport;assembly=TABKOPF" 
            xmlns:ABP="clr-namespace:WPFExcelReport;assembly=TABPOS"  
            xmlns:BD="clr-namespace:WPFExcelReport;assembly=TBAAUF"  
            xmlns:GD="clr-namespace:WPFExcelReport;assembly=TGAAUF"  
            xmlns:BB="clr-namespace:WPFExcelReport;assembly=TBABST"  
            xmlns:ABF="clr-namespace:WPFExcelReport;assembly=TABFOLGE"  
            xmlns:WD="clr-namespace:WPFExcelReport;assembly=TWDECK"  
            xmlns:ABE="clr-namespace:WPFExcelReport;assembly=TABARTE"              
            xmlns:MU="clr-namespace:WPFExcelReport;assembly=TABAUFM"   
             x:Name="TV"
            Loaded="Window_Loaded"  
            Margin="0,0,0,0"  
            >
    <T:ViewBase.Resources>
        <ucd:Divideby10  x:Key="d10"/>
        <ucd:Divideby100  x:Key="d100"/>
        <ucd:Divideby1000  x:Key="d1000"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
        <ucd:String2ColorConverter  x:Key="str2color"/> 
    </T:ViewBase.Resources>
    <TabControl>
        <TabItem Header="{Binding Source={Localization:Translate Word=生产单信息}}" >
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="1*"/>
                </Grid.RowDefinitions> 
                <StackPanel   Grid.Row="0"  >
                    <WrapPanel >
                        <ComboBox
                    Name="cbWTYE"
                    HorizontalAlignment="Left"
                    IsEditable="True"
                    Background="White"
                    IsTextSearchEnabled="True"
                    IsTextSearchCaseSensitive="False"                           
                    Width="120" 
                    >
                            <ComboBoxItem Content="{Binding Source={Localization:Translate Word=生产单}}"/>
                            <ComboBoxItem Content="{Binding Source={Localization:Translate Word=销售单}}"/>
                            <ComboBoxItem Content="{Binding Source={Localization:Translate Word=发货单}}"/>
                        </ComboBox>
                        <WrapPanel>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=KRS}}"/>
                            <ex:TXT72 MaxLength="2"  PRE="  "      Text="{Binding KRS,ElementName=TV}" Width="60"/>
                            <TextBlock Text="{Binding Source={Localization:Translate Word=LFD}}"/>
                            <ex:TXT72    MaxLength="6"  PRE="000000"   Text="{Binding LFD,ElementName=TV}" Width="160" />
                            <TextBlock Text="{Binding Source={Localization:Translate Word=POS}}"/>
                            <ex:TXT72    MaxLength="3" PRE="000"   Text="{Binding POS,ElementName=TV}" Width="60"/>
                        </WrapPanel>
                    </WrapPanel>
                    <WrapPanel>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Button Grid.Row="0" Height="30"  Width="30" Margin="0,0,0,0"   
                                Click="QueryCommand" KeyboardNavigation.TabIndex="3" 
                                IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/add.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=增加比较}}"></TextBlock>
                        </Grid>
                        <Grid Margin="10,0,0,10">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="ClearCommand" KeyboardNavigation.TabIndex="3" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Delete.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=清理环境}}"></TextBlock>
                        </Grid>
                        <Grid Margin="10,0,0,10">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnDeleteABON_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Delete.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=删除网络}}"></TextBlock>
                        </Grid>
                        <Grid Margin="10,0,0,10">
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="btnDeleteAB_Click" KeyboardNavigation.TabIndex="3" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Delete.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=删除订单}}"></TextBlock>
                        </Grid>
                        <Grid>
                            <Grid.RowDefinitions>
                                <RowDefinition Height="Auto"></RowDefinition>
                                <RowDefinition Height="Auto"></RowDefinition>
                            </Grid.RowDefinitions>
                            <Button  Height="30"  Width="30" Margin="20,0,0,0"  Click="PrintCommand" KeyboardNavigation.TabIndex="3" IsDefault="True">
                                <Button.Background>
                                    <ImageBrush  ImageSource="/ImagePackage;component/Images/Print.png" />
                                </Button.Background>
                            </Button>
                            <TextBlock Grid.Row="1"  Width="Auto" Text="{Binding Source={Localization:Translate Word=打印}}"></TextBlock>
                        </Grid>
                    </WrapPanel>
                </StackPanel>
                <TabControl Grid.Row="1">
                    <TabItem Header="{Binding Source={Localization:Translate Word=生产单}}">
                        <StackPanel >
                            <Expander Header="{Binding Source={Localization:Translate Word=生产单}}">
                                <ABK:TRAB04 Name="c11"
                                    EXAUF="{Binding KEY,ElementName=TV}"
                                            />
                            </Expander>
                            <Expander Header="{Binding Source={Localization:Translate Word=生产单行}}">
                                <ABP:TRABXX Name="c12" EXAUF="{Binding KEY,ElementName=TV}"/>
                            </Expander>
                            <Expander Header="{Binding Source={Localization:Translate Word=包装行}}">
                                <MU:TRMU Name="c13" EXAUF="{Binding KEY,ElementName=TV}"/>
                            </Expander>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=加工流程}}">
                        <StackPanel >
                            <Expander Header="{Binding Source={Localization:Translate Word=加工步骤}}">
                                <ABF:TRABF Name="c21" EXAUF="{Binding KEY,ElementName=TV}"/>
                            </Expander>
                            <Expander Header="{Binding Source={Localization:Translate Word=加工参数}}">
                                <ABE:TRABE Name="c22"
                                    EXAUF="{Binding KEY,ElementName=TV}"
                                            />
                            </Expander>
                        </StackPanel>
                    </TabItem>
                    <TabItem Header="{Binding Source={Localization:Translate Word=辅料需求}}">
                        <StackPanel >
                            <Expander Header="{Binding Source={Localization:Translate Word=纱线需求}}">
                                <GD:TRGD Name="c31"
                                    EXAUF="{Binding KEY,ElementName=TV}"
                                            />
                            </Expander>
                            <Expander Header="{Binding Source={Localization:Translate Word=轴需求}}">
                                <BD:TRBD Name="c32" EXAUF="{Binding KEY,ElementName=TV}"/>
                            </Expander>
                            <Expander Header="{Binding Source={Localization:Translate Word=面料需求}}">
                                <WD:TRWD Name="c33" EXAUF="{Binding KEY,ElementName=TV}"/>
                            </Expander>
                        </StackPanel>
                    </TabItem>
                </TabControl>
            </Grid>
        </TabItem>
    </TabControl>
</T:ViewBase>
